package com.aspose.cells;

class zrr {
   private double[] a;
   private int b;
   private int c = 0;

   public zrr(int var1, int var2) {
      this.a = new double[var1];
      this.b = var2;
   }

   public int a() {
      return this.c;
   }

   public void a(double var1) {
      if (this.c == this.a.length) {
         int var3 = this.b < 1 ? this.c : this.b;
         double[] var4 = new double[this.c + var3];
         System.arraycopy(this.a, 0, var4, 0, this.c);
         this.a = var4;
      }

      this.a[this.c++] = var1;
   }

   public void a(double var1, int var3) {
      if (this.c + var3 > this.a.length) {
         int var4 = this.b < 1 ? this.c : this.b;
         if (var4 <= var3) {
            var4 += var3;
         }

         double[] var5 = new double[this.c + var4];
         System.arraycopy(this.a, 0, var5, 0, this.c);
         this.a = var5;
      }

      com.aspose.cells.a.c.zc.a(this.a, this.c, this.c + var3, var1);
      this.c += var3;
   }

   public double a(int var1) {
      return this.a[var1];
   }

   public double[] b() {
      return this.a;
   }
}
